<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>欢迎光临 Music Store</title>
<link type="text/css" rel="Stylesheet"
	href="/MusicStore/static/style/front.css" />
</head>

<body>
	<div id="wrapper">
		<div id="header">
			<div id="header-logo">
				<a href="index"><img
					src="/MusicStore/static/style/images/logo.png" alt=""></img></a>
			</div>
			<div id="header-login">
				<a href="login">登录</a> | <a href="#">注册</a>
			</div>
			<div class="clearBoth"></div>
			<div id="header-search">
				<form action="product-list" method="get">
					<input id="keyword" name="title" type="text" /><input
						id="btnSearch" type="submit" value="搜索" />
				</form>
			</div>
			<div id="header-nav">
				<ul>

					<li><a href="manage">后台管理</a></li>
					<li><a href="product-list">商品管理</a></li>
					<li><a href="manage-genre">分类管理</a></li>
				</ul>
				<label id="welcome">您好，Sam。</label>
			</div>
		</div>
		<div id="content">
			<div id="main">
				<div>
					<div id="hotAlbums">
						<table>
							<tr>
								<td>唱片名称</td>
								<td>歌手</td>
								<td>单价</td>
								<td>编辑</td>
							</tr>
							<c:forEach var="ablum" items="${albumlist}">
								<tr>
									<td>${ablum.title }</td>
									<td>${ablum.artist }</td>
									<td>${ablum.price }</td>
									<td><a href="">编辑</a></td>
								</tr>
							</c:forEach>
						</table>
					</div>
					<c:if test="${pageNum>1}">
						<a
							href="product-list?pageNum=${pageNum-1}&genreId=${param.genreId}&title=${param.title}">上一页</a>
					</c:if>
					<c:if test="${pageNum<pagetotal}">
						<a
							href="product-list?pageNum=${pageNum+1}&genreId=${param.genreId}&title=${param.title}">下一页</a>
					</c:if>
				</div>

			</div>
			<div class="clearBoth"></div>
		</div>
		<div id="footer">
			<div id="footer-ad">
				<img src="/MusicStore/static/style/images/footer.png" alt=""></img>
			</div>
			<div id="footer-contactUs">
				<p>Music Store</p>
				<p>Design by Sam Chen, July,2011.</p>
			</div>
		</div>
	</div>
</body>
</html>